import request from '@/utils/request'


export function roleAll(data) { //查询全部角色
  return request({
    url: '/sys-center/api/system/roles/selection',
    method: 'post',
    data
  })
}
export function treeper(data) { //查询全部人员
  return request({
    url: '/sys-center/api/system/personnel/select',
    method: 'post',
    data
  })
}
export function announcePage(data) { //分页查询
  return request({
    url: '/sys-center/api/sysNotice/page',
    method: 'POST',
    data
  })
}
export function announceAdd(data) { //添加
  return request({
    url: '/sys-center/api/sysNotice',
    method: 'POST',
    data
  })
}
//原 del del/ get
export function announceDelete(id) { //添加
  return request({
    url: '/sys-center/api/sysNotice/del/'+id,
    method: 'get',
  })
}
export function announceDetails(id) { //根据id回显数据
  return request({
    url: '/sys-center/api/sysNotice/'+id,
    method: 'GET',
  })
}
//原 put put/ post
export function announceDetailsRead(id) { //根据id回显数据
  return request({
    url: '/sys-center/api/mattersToBeRead/put/read/put/'+id,
    method: 'get',
  //   params:{
  //     id,
  // }
  })
}
